/* 新建文件和文件夹对话框样式 */

.create-dialog {
  z-index: 1050 !important; /* 确保显示在右键菜单(z-index: 1000)上方 */
}

.create-dialog .ant-modal-mask {
  z-index: 1050 !important;
}

.create-dialog .ant-modal-wrap {
  z-index: 1051 !important;
}

.create-dialog .ant-modal-body {
  padding: 20px 24px;
}

.create-dialog-path {
  margin-bottom: 20px;
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
}

.create-dialog-path-label {
  color: #666;
  font-size: 13px;
  font-weight: 500;
}

.create-dialog-path-value {
  color: #333;
  font-size: 13px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  word-break: break-all;
}

.create-dialog-input .ant-input {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
}

.create-dialog-input .ant-input:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.create-dialog-input .ant-input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.create-dialog-tips {
  margin-top: 16px;
  padding: 12px;
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 6px;
}

.create-dialog-tips-title {
  color: #52c41a;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.create-dialog-tips-list {
  margin: 0;
  padding-left: 16px;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

.create-dialog-tips-list li {
  margin-bottom: 4px;
}

.create-dialog-tips-list li:last-child {
  margin-bottom: 0;
}

/* 表单项样式 */
.create-dialog .ant-form-item {
  margin-bottom: 16px;
}

.create-dialog .ant-form-item-label > label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.create-dialog .ant-form-item-explain-error {
  font-size: 12px;
  margin-top: 4px;
}

/* 按钮样式 */
.create-dialog .ant-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
}

.create-dialog .ant-btn {
  border-radius: 6px;
  font-size: 14px;
  height: 36px;
  padding: 0 16px;
}

.create-dialog .ant-btn-primary {
  background-color: #1890ff;
  border-color: #1890ff;
}

.create-dialog .ant-btn-primary:hover {
  background-color: #40a9ff;
  border-color: #40a9ff;
}

.create-dialog .ant-btn-primary:disabled {
  background-color: #f5f5f5;
  border-color: #d9d9d9;
  color: #bfbfbf;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .create-dialog {
    width: 90% !important;
    max-width: 400px;
  }
  
  .create-dialog .ant-modal-body {
    padding: 16px 20px;
  }
  
  .create-dialog-path {
    padding: 10px;
  }
  
  .create-dialog-tips {
    padding: 10px;
  }
}
